import VueRouter from 'vue-router'

let routes = [
    {
        path: "/",
        component: require('./components/Home.vue')
    },
    {
        path: "/about",
        component: require('./components/About.vue')
    },
    {
        path: "/list/:id",
        component: require('./components/List.vue')
    },
    {
        path: "/list",
        component: require('./components/List.vue')
    },
    {
        path: "/link",
        component: require('./components/Link.vue')
    },
    {
        path: "/article/:id",
        component: require('./components/Article.vue')
    }
];

export default new VueRouter({
    linkActiveClass: "active",
    routes
});